package com.celesea.auth.role.service;

import com.celesea.auth.role.entity.RoleUser;
import com.celesea.auth.role.vo.RoleVo;
import com.celesea.framework.service.BaseService;
import com.celesea.framework.vo.DictionaryVo;

import java.util.List;

/**
 * @author JackYuan
 * @create 2017-10-28 20:45
 */
public interface RoleUserService extends BaseService<RoleUser> {

    List<RoleUser> findByRole(String roleId);

    int deleteByRole(String roleId);

    int insertByRole(RoleVo entity);

    List<DictionaryVo> findByRoleCode(String code);
}
